class ViewButton extends React.Component {
    constructor(props) {
        super(props);
    }
    dianji = () => {
        console.log(this);
    }
    render() {
        return (
            <React.Fragment>
                <button onClick={this.dianji}>点击吧，少年！</button>
            </React.Fragment>
        );
    }
}